import request from '@/utils/request'

// 查询试卷小题列表
export function listPaperTopic(query) {
  return request({
    url: '/exam/paperTopic/list',
    method: 'get',
    params: query
  })
}

// 查询试卷小题详细
export function getPaperTopic(id) {
  return request({
    url: '/exam/paperTopic/' + id,
    method: 'get'
  })
}

// 新增试卷小题
export function addPaperTopic(data) {
  return request({
    url: '/exam/paperTopic',
    method: 'post',
    data: data
  })
}

// 修改试卷小题
export function updatePaperTopic(data) {
  return request({
    url: '/exam/paperTopic',
    method: 'put',
    data: data
  })
}

// 删除试卷小题
export function delPaperTopic(id) {
  return request({
    url: '/exam/paperTopic/' + id,
    method: 'delete'
  })
}
